
			
<!DOCTYPE html>

<html>
	<head>
		{{template "bootstrap"}}
		<title> 服务器类型添加 </title>
		
	</head>

	<body style="padding-top:80px">
  		{{template "nav" .}}

		<div class="container">
			<form method="POST" action="/smanager/addtype">
			  <div class="form-group">
			    <h1>分类名称</h1>
			    <input id="name" class="form-control"  placeholder="输入服务器类型" name="name">
				<input id="desc" class="form-control"  placeholder="输入类型描术" name="desc">
				
									<label class="checkbox-inline">
					  <input type="checkbox" name="opt1" >日志配置
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" name="opt2" >老虎机数值配制
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox"  name="opt3" >百人牛牛数值配制
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" name="opt4" >退休控制
					</label>
			  </div>



		
			  <button type="submit" class="btn btn-default" onclick="return checkInput();">添加 </button>
			</form>

		</div>

		<script type="text/javascript">

			function checkInput(){
				var name = document.getElementById("name");
				if (name.value.length == 0) {
					alert("请输入类型名称")
					return false
				}
				
				var desc = document.getElementById("desc");
				if (desc.value.length == 0) {
					alert("请输入类型描述")
					return false
				}

				return true
			}

			function backToHome() {
				window.location.href = "/"
				return false
			}
		</script>
	</body>
</html>